package com.rainbow.support.minio.properties;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * minio属性配置
 * @author 傅为地
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = MinioProperties.MINIO_PROPERTIES_PRFIX)
public class MinioProperties {

    public final static String MINIO_PROPERTIES_PRFIX = "rainbow.extra.minio.storage";

    /**
     * 是否开启
     */
    private boolean enable = true;

    /**
     * 服务地址
     */
    private String url = "";

    /**
     * 访问密钥
     */
    private String access = "";

    /**
     * 加密私钥
     */
    private String secret = "";


}
